package com.promote.day01;

/**
 * @ClassName Test
 * Description
 * @Author lizihao
 * Date 2021/3/14 15:59
 * @Version 1.0
 **/
public class Test {

    public static void main(String[] args) {
        String greeting = "hasitao";

        int index = greeting.offsetByCodePoints(0, 3);

        System.out.println(index);

        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(greeting);

        stringBuilder.append("hunzi");

        String s = stringBuilder.toString();

        System.err.println(s);
    }
}
